﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PIPSetup.aspx.cs" Inherits="Hisun.View.ProductInProcess.PIPSetup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">中间体设置</div></div>
    <div class ="CommonPage_Body">
    
       
        <table style ="width:100%;">
            <tr>
                <td >
                    <asp:Label ID="Label1" runat="server" Text="作业中心：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="dropCostCenterSelect" runat="server" Height="31px" 
                        Width="218px" SkinID="DropdownList">
                    </asp:DropDownList>
                    <asp:Button SkinID = "Button" ID="Button_Query" runat="server" OnClick="Button_Query_Click" Text="查询" />
                </td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button SkinID = "Button" ID="Button_Add" runat="server" OnCommand="Button_Add_Command" Text="增加" />
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Panel ID="Panel_GridList" runat="server">
                        <asp:GridView ID="GridView_PIP" runat="server"   AutoGenerateColumns="False" 
                           SkinID="GridView" >
                            <Columns>
                                <asp:BoundField DataField="中间体ID" HeaderText="中间体ID" />
                                <asp:BoundField DataField="中间体名称" HeaderText="中间体名称" ReadOnly="True" SortExpression="中间体名称" />
                                <asp:BoundField DataField="计量单位" HeaderText="计量单位" ReadOnly="True" SortExpression="计量单位" />
                                <asp:CheckBoxField DataField="是否中间体" HeaderText="是否中间体" ReadOnly="True" SortExpression="是否中间体" />
                                <asp:CheckBoxField DataField="是否可用" HeaderText="是否可用" />
                                <asp:BoundField DataField="产品ID" HeaderText="产品ID" ReadOnly="True" SortExpression="产品ID" />
                                <asp:BoundField DataField="部门ID" HeaderText="部门ID" ReadOnly="True" SortExpression="部门ID" />
                                <asp:TemplateField HeaderText="中间体管理">
                                    <ItemTemplate>
                                        <asp:Button SkinID = "Button" ID="Button_Edit" runat="server" CommandArgument='<%# Eval("ID") %>' OnCommand="Button_Edit_Command"
                                            Text="编辑" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="ID" Visible="False" />
                            </Columns>
                        </asp:GridView>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Panel ID="Panel_AddEdit" runat="server" Visible="False">
                        <table class = "CommonPage_Table">
                            <tr>
                                <td>
                                    <asp:Label ID="Label2" runat="server" Text="中间体ID：" SkinID="Label"></asp:Label>
                                </td>
                                <td colspan="3">
                                    <asp:Label ID="Label_PIPId" runat="server" SkinID="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label7" runat="server" Text="中间体名称：" SkinID="Label"></asp:Label>
                                </td>
                                <td colspan="3">
                                    <asp:TextBox ID="TextBox_PIPName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator_Name" runat="server" 
                                        ControlToValidate="TextBox_PIPName" ErrorMessage="*" ValidationGroup="Group"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label5" runat="server" Text="是否中间体：" SkinID="Label"></asp:Label>
                                </td>
                                <td>
                                    <asp:CheckBox ID="CheckBox_IsProducted" runat="server" SkinID="CheckBox" />
                                </td>
                                <td>
                                    &nbsp;
                                    <asp:Label ID="Label9" runat="server" SkinID="Label" Text="是否启用："></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                    <asp:CheckBox ID="CheckBox_IsUseing" runat="server" SkinID="CheckBox" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label4" runat="server" Text="产品ID：" SkinID="Label"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Label_ProductId" runat="server" SkinID="TextBox"></asp:TextBox>
                                    <asp:Button SkinID = "Button" ID="Button_SelectProductAccount" runat="server" 
                                        OnClick="Button_SelectProductAccount_Click" Text="..." Width="20px" />
                                </td>
                                <td>
                                    <asp:Label ID="Label6" runat="server" Text="产品名称："></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Label_ProductName" runat="server" SkinID="TextBox"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label8" runat="server" Text="部门ID：" SkinID="Label"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox_Organ" runat="server" SkinID="TextBox"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Label ID="Label3" runat="server" Text="计量单位：" SkinID="Label"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Label_Unit" runat="server" SkinID="TextBox"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator_Unit" runat="server" 
                                        ControlToValidate="Label_Unit" ErrorMessage="*" ValidationGroup="Group"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4">
                                    <asp:Button SkinID = "Button" ID="Button_Save" runat="server" OnCommand="Button_Save_Command" 
                                        Text="保存" ValidationGroup="Group" />
                                    <asp:Button SkinID = "Button" ID="Button_Cancel" runat="server" OnCommand="Button_Cancel_Command" 
                                        Text="取消" />
                                    <asp:HiddenField ID="EditFlag" runat="server" Value="0" />
                                    &nbsp; &nbsp;
                                    <asp:HiddenField ID="MyProductInfo" runat="server" Value="0" />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                    </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>

    </div>
    
    </div>

    </form>
</body>
</html>
